Skip to main content

Useful Commands

Validator Operation

View your validator key

story validator export

Export EVM private key

story validator export --export-evm-key

Export EVM private key to env

story validator export --export-evm-key --evm-key-path .env

Create validator

You should stake IP token to create validator. Currenlty to create validator you have to stake 1024 IP.

Locked token mode

AMOUNT_TO_STAKE_IN_WEI=1024000000000000000000
./story validator create \
--stake ${AMOUNT_TO_STAKE_IN_WEI} \
--moniker ${VALIDATOR_NAME} \
--rpc ${rpc} \
--chain-id ${chain_id} \
--commission-rate ${rate} \
--unlocked=false

Unlocked token mode

AMOUNT_TO_STAKE_IN_WEI=1024000000000000000000
./story validator create \
--stake ${AMOUNT_TO_STAKE_IN_WEI} \
--moniker ${VALIDATOR_NAME} \
--rpc ${rpc} \
--chain-id ${chain_id} \
--commission-rate ${rate} \
--unlocked=true
note

1 ETH = 1,000,000,000,000,000,000 WEI (10^18 WEI)